<div class="row-fluid">
    <div class="span12">
        <fieldset>
            <legend>
                #i18n{portal.system.manage_caches.titleCacheList}
                <div class="pull-right">
                    <form method="post" action="jsp/admin/system/DoReloadProperties.jsp" class="form-inline pull-left spaced">
                        <button class="btn btn-primary btn-small" type="submit" id="reload" title="#i18n{portal.system.manage_caches.titleReloadProperties}">
                            <i class="icon-refresh icon-white"></i>&nbsp;<!-- #i18n{portal.system.manage_caches.buttonReload} -->#i18n{portal.system.manage_caches.titleReloadProperties}
                        </button>
                    </form>
                    <a class="btn btn-primary btn-small" href="jsp/admin/system/CacheInfos.jsp"> <i class="icon-eye-open icon-white"></i>&nbsp;#i18n{portal.system.manage_caches.buttonViewKeys}</a>
                    <a class="btn btn-danger btn-small" href="jsp/admin/system/DoResetCaches.jsp"> <i class="icon-trash  icon-white"></i>&nbsp;#i18n{portal.system.manage_caches.buttonFlush}</a>
                </div>
            </legend>
            <table class="table table-striped table-condensed">
                <tr>
                    <th>#i18n{portal.system.manage_caches.columnTitleName}</th>
                    <th>#i18n{portal.system.manage_caches.columnTitleCacheSize}</th>
                    <th>#i18n{portal.system.manage_caches.columnTitleMemorySize}</th>
                    <th>#i18n{portal.system.manage_caches.columnTitleActions}</th>
                </tr>
                <#assign id = 0>
                <#list services_list as service>
                <tr>
                    <td>
                        <#if service.cacheEnable >
                        <span class="label label-success" title="#i18n{portal.system.manage_caches.imgAltEnable}">
                            <i class=" icon-ok-sign icon-white"></i>
                        </span>
                        <#else>
                        <span class="label label-important" title="#i18n{portal.system.manage_caches.imgAltDisable}">
                            <i class=" icon-remove-sign icon-white"></i>
                        </span>
                        </#if>
                        &nbsp;<strong>${service.name}</strong>
                        <br>
                        <i class="icon-info-sign"></i>&nbsp;#i18n{portal.system.manage_caches.columnTitleMaxElements}: ${service.maxElements!"-"}
                        &nbsp;|&nbsp;<i class="icon-time"></i>&nbsp;#i18n{portal.system.manage_caches.columnTitleTimeToLive} : ${service.timeToLive!"-"}
                    </td>

                    <td>${service.cacheSize}</td>
                    <td>${service.memorySize}</td>
                    <td>
                        <#if service.cacheEnable >
                        <a href="jsp/admin/system/DoToggleCache.jsp?id_cache=${id}" class="btn btn-danger btn-small" title="#i18n{portal.system.manage_caches.actionToggle}">
                            <i class="icon-stop icon-white"></i>
                        </a>
                        <#else>
                        <a href="jsp/admin/system/DoToggleCache.jsp?id_cache=${id}" class="btn btn-success btn-small" title="#i18n{portal.system.manage_caches.actionToggle}">
                            <i class="icon-play icon-white"></i>
                        </a>
                        </#if>
                        <a href="jsp/admin/system/CacheInfos.jsp?id_cache=${id}" class="btn btn-primary btn-small" title="#i18n{portal.system.manage_caches.actionViewKeys}">
                            <i class="icon-eye-open icon-white"></i>
                        </a>
                        <a class="btn btn-danger btn-small" href="jsp/admin/system/DoResetCaches.jsp?id_cache=${id}" title="#i18n{portal.system.manage_caches.actionClear}">
                            <i class="icon-trash icon-white"></i>
                        </a>

                    </td>
                </tr>
                <#assign id = id + 1>
                </#list>
            </table>
        </fieldset>
    </div>
</div>